// 配置环境baseurl
const env = import.meta.env.MODE || "production";

const EnvConfig = {
  development: {
    baseApi: "/api",
    mockApi: "https://m1.apifoxmock.com/m1/2207553-915238-default/api",
  },
  test: {
    baseApi: "//test-future.com/api",
    mockApi: "https://m1.apifoxmock.com/m1/2207553-915238-default/api",
  },
  production: {
    baseApi: "//future.com/api",
    mockApi: "https://m1.apifoxmock.com/m1/2207553-915238-default/api",
  },
};

export default {
  env,
  ...EnvConfig[env],
  mock: false,
};
